use fltk::{
    app, button,
    frame::Frame,
    prelude::{GroupExt, WidgetBase, WidgetExt, WindowExt},
    window, enums::FrameType,
};

fn main() {
    let mut app = app::App::default().with_scheme(app::Scheme::Gtk);
    app::background(240, 240, 240);
    let (width, height) = app::screen_size();
    let mut win = window::Window::new(0, 0, 800, 600, "");
    win.make_resizable(true);
    win.clone().center_screen();
    let mut frame_1 = Frame::new(5, 50, 790, 40, "");
    frame_1.set_frame(fltk::enums::FrameType::EngravedBox);
    let mut btn_start = button::Button::new(40, 60, 60, 20, "@< 开始");
    btn_start.set_frame(FrameType::GleamUpBox);
    win.end();
    win.show();
    app.run().unwrap();
}
